package com.qf.mrmd.result;

public class ResponseData {

//    public static void main(String[] args){
//        ResponseData resopnseData = new ResponseData();
//        resopnseData.setEcode("");
//        new ResponseData()
//    }



    private  String ecode;
    private  String info;
    private  Object data;
    public ResponseData(String ecode, String info, Object data) {
        this.ecode = ecode;
        this.info = info;
        this.data = data;
    }

    public ResponseData(ResponseCode responsecode, Object data) {
        this.ecode = responsecode.getEcode();
        this.info= responsecode.getInfo();
        this.data = data;
    }

    public ResponseData(String ecode, String info) {
        this.ecode = ecode;
        this.info = info;
    }

    public ResponseData(ResponseCode responsecode) {
        this.ecode = responsecode.getEcode();
        this.info = responsecode.getInfo();

    }

    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
